/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-10-17 下午11:18 Created by lyyang
 */
package com.xunton.bss.weixin.api.message.answer;

import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.jade.bss.weixin.api.protocol.xml.adapter.SecondToDateAdapter;

/**
 * 用户响应消息
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-10-17 下午11:18
 */
@XmlAccessorType (XmlAccessType.FIELD)
public class Answer implements Serializable
{
    //接收方帐号（收到的OpenID）
    @XmlElement (name = "ToUserName")
    private String toUserName;
    //开发者微信号
    @XmlElement (name = "FromUserName")
    private String fromUserName;
    //消息/事件创建时间 （整型）
    @XmlElement (name = "CreateTime")
    @XmlJavaTypeAdapter (SecondToDateAdapter.class)
    private Date createTime;

    public String getToUserName()
    {
        return toUserName;
    }

    public void setToUserName(String toUserName)
    {
        this.toUserName = toUserName;
    }

    public String getFromUserName()
    {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName)
    {
        this.fromUserName = fromUserName;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }
}
